package com.qingyun.pdfservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.qingyun.pdfservice.entity.FeedbackPhoto;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 课堂反馈-照片 Mapper 接口
 * </p>
 *
 * @author your_name
 * @since 2025-08-23
 */
@Mapper
public interface FeedbackPhotoMapper extends BaseMapper<FeedbackPhoto> {
    
    /**
     * 根据反馈ID获取图片列表
     * @param feedbackId 反馈ID
     * @return 图片列表
     */
    List<FeedbackPhoto> selectByFeedbackId(@Param("feedbackId") Long feedbackId);
    
    /**
     * 根据反馈ID删除所有图片
     * @param feedbackId 反馈ID
     * @return 删除的记录数
     */
    int deleteByFeedbackId(@Param("feedbackId") Long feedbackId);
}
